package com.ruoyi.shop.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 加油站对象 che_petrol
 * 
 * @author ruoyi
 * @date 2025-01-02
 */
public class ChePetrol extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 加油站名 */
    @Excel(name = "加油站名")
    private String name;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String phone;

    /** 每周营业时间 */
    @Excel(name = "每周营业时间")
    private String week;

    /** 开始营业时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "开始营业时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束营业时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "结束营业时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 详细位置 */
    @Excel(name = "详细位置")
    private String address;

    /** 经度 */
    private String longitude;

    /** 维度 */
    private String latitude;

    /** 省 */
    private String province;

    /** 市 */
    private String city;

    /** 区 */
    private String district;

    private List<ChePetrolOil> chePetrolOil;

    private PetrolImage petrolImage;

    public PetrolImage getPetrolImage() {
        return petrolImage;
    }

    public void setPetrolImage(PetrolImage petrolImage) {
        this.petrolImage = petrolImage;
    }

    public List<ChePetrolOil> getChePetrolOil() {
        return chePetrolOil;
    }


    public void setChePetrolOil(List<ChePetrolOil> chePetrolOil) {
        this.chePetrolOil = chePetrolOil;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setWeek(String week) 
    {
        this.week = week;
    }

    public String getWeek() 
    {
        return week;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setLongitude(String longitude)
    {
        this.longitude = longitude;
    }

    public String getLongitude()
    {
        return longitude;
    }
    public void setLatitude(String latitude)
    {
        this.latitude = latitude;
    }

    public String getLatitude()
    {
        return latitude;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setDistrict(String district) 
    {
        this.district = district;
    }

    public String getDistrict() 
    {
        return district;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("week", getWeek())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("address", getAddress())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("province", getProvince())
            .append("city", getCity())
            .append("district", getDistrict())
            .toString();
    }
}
